<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title></title>
</head>
<body>
<a ><p th:text="${session.users1.uname}">欢迎登录</p></a>
<table border="1">
  <tr>
    <td>编号</td>
    <td>名称</td>
    <td>图片</td>
    <td>分类</td>
  </tr>
  <tr th:each="food:${foodList}">
    <td th:text="${food.fid}"></td>
    <td th:text="${food.fname}"></td>
    <td><img th:src="@{|/${food.fimage}|}" width="30px"></td>
    <td th:text="${food.type.tname}"></td>
  </tr>
</table>
</body>
</html>